   // 点击购物车时的点击事件
   function shopping(){
    var sign=localStorage.getItem('sign');
    if(JSON.parse(sign).static){
    window.location.href="http://localhost/src/pages/shoppingCart.html";
    }
    else{
    alert("您还没有登录请先登录!")
    　window.location.href="http://localhost/src/pages/signIn.html";
    }
}
function jsonp(url,success,data){
    data = data || {};
    var str = "";
    for(var i in data){
        str += `${i}=${data[i]}&`
    }
    var callbackName = "cyr"+Math.random().toString().slice(2)+"_"+new Date().getTime();
    window[callbackName] = function(res){
        success(res)
        alert(res);
        document.body.removeChild(script);
    }
    url = url + "?" + str+"&callback="+callbackName;;
    console.log(url);
    var script = document.createElement("script");
   
    
    script.scr = url;
    console.log(script);
    document.body.appendChild(script);
    
}